<?php

use Illuminate\Database\Seeder;

class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
		DB::table('users')->truncate();

        DB::table('users')->insert([
            [
                'gid' => 1,
                'region_id' => 1,
                'department_id' => 0,
                'username' => 'qiang',
                'phone' => '15962658097', 
                'email' => '496604841@qq.com',
                'password' => bcrypt('1988665'),
                'name' => '马帮强',
                'sex' => 1,
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now(),
            ],
            [
                'gid' => 2,
                'region_id' => 2,
                'department_id' => 0,
                'username' => 'daizong',
                'phone' => '15006268562', 
                'email' => '496604842@qq.com',
                'password' => bcrypt('123456'),
                'name' => '戴智慧',
                'sex' => 1,
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now(),
            ],
            [
                'gid' => 2,
                'region_id' => 3,
                'department_id' => 0,
                'username' => 'wangzong',
                'phone' => '15006268563', 
                'email' => '496604843@qq.com',
                'password' => bcrypt('123456'),
                'name' => '王总',
                'sex' => 1,
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now(),
            ],
            [
                'gid' => 5,
                'region_id' => 2,
                'department_id' => 6,
                'username' => 'jiajia',
                'phone' => '15106268563', 
                'email' => '496604863@qq.com',
                'password' => bcrypt('123456'),
                'name' => '佳佳',
                'sex' => 1,
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now(),
            ],
            [
                'gid' => 6,
                'region_id' => 2,
                'department_id' => 6,
                'username' => 'huanhuan',
                'phone' => '15206268563', 
                'email' => '496704863@qq.com',
                'password' => bcrypt('123456'),
                'name' => '庄换换',
                'sex' => 2,
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now(),
            ],
            [
                'gid' => 4,
                'region_id' => 1,
                'department_id' => 5,
                'username' => 'chenxi',
                'phone' => '15406268563', 
                'email' => '496704263@qq.com',
                'password' => bcrypt('123456'),
                'name' => '陈西',
                'sex' => 2,
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now(),
            ],
            [
                'gid' => 3,
                'region_id' => 1,
                'department_id' => 4,
                'username' => 'yanhong',
                'phone' => '15606268563', 
                'email' => '496904263@qq.com',
                'password' => bcrypt('123456'),
                'name' => '吴艳红',
                'sex' => 2,
                'created_at' => \Carbon\Carbon::now(),
                'updated_at' => \Carbon\Carbon::now(),
            ]
        ]);
    }
}
